<sel name="Public/content-base"/>
<extend name="Public/base" />
<block name="nav">
    <ul class="breadcrumb">
        <li>
            <i class="icon-home black small"></i><a href="{:U('Index/index');}">首页</a>
            <span class="divider">&raquo;</span>
        </li>
        <li>
           <a href="{:U('index');}">广告列表</a>
            <span class="divider">&raquo;</span>
        </li>
        <li>{:isset($info['id'])?'编辑':'新增'}广告位</li>
    </ul>
    <!--<h1 id="main-heading">新增用户</h1>-->
</block>

<block name="body">
    <div class="row-fluid">
        <div class="span12 widget">
            <?php
                if(!C('IS_MODAL')){
            ?>
            <div class="widget-header">
                <span class="title"><i class="icol-application-form"></i> {:isset($info['id'])?'编辑':'新增'}广告位</span>
            </div>
            <?php
            }
            ?>
            <div class="widget-content form-container">
                <form id="form" action="{:U('')}" method="post" class="form-horizontal ajax-form">
				<!-- 基础 -->
					<div class="control-group">
						<label class="control-label">广告位名称
						</label>
						<div class="controls">
							<input type="text" name="name" class="span10" value="{$info.name|default=''}">
						</div>
					</div>
                    <div class="control-group">
						<label class="control-label">广告位宽度</label>
						<div class="controls">
							<input type="text" name="width" class="span10" value="{$info.width}">
						</div>
					</div>
                    <div class="control-group">
						<label class="control-label">广告位高度</label>
						<div class="controls">
							<input type="text" name="height" class="span10" value="{$info.height}">
						</div>
					</div>			
					<div class="control-group cf">
                        <label class="control-label">描述<span class="check-tips"></span></label>
                        <div class="controls">
                                <textarea class="span10" name="description">{$info.description}</textarea>

                        </div>
                    </div>
				
				

                    <div class="form-actions">
                        <input type="hidden" name="id" value="{$info.id|default=''}">
                        <button type="submit" class="btn btn-success" target-form="form-horizontal">保 存</button>
                        <?php
                                if(!C('IS_MODAL')){
                            ?>
                        <button class="btn btn-info" onclick="javascript:history.back(-1);return false;">返 回</button>
                        <?php
                            }else{
                            ?>
                        <a href="#" class="btn" data-dismiss="modal">关闭</a>
                        <?php

                            }?>
                    </div>
                </form>
            </div>
	    </div>
    </div>
</block>